package numberSort;

public class MainSort {

	public long[] BubbleSort (long numberHold[]) {
		
		long heldNumber = 0;
		
		System.out.print("Now presenting the sorted numbers: ");
		for (int i = 0; i < numberHold.length; i++) {
			int j = i+1;
			for (; j < numberHold.length; j++) {
				if (numberHold[i] > numberHold[j]) {
					heldNumber = numberHold[j];
					numberHold[j] = numberHold[i];
					numberHold[i] = heldNumber;
				}
			}
			System.out.print(numberHold[i] + " ");
		}
		
		return numberHold;
		
	}
	
	
	public static void main(String[] args) {
		
		long start = System.currentTimeMillis();

		SortTest run = new SortTest();
		run.GenerateNumbers();
		
		long end = System.currentTimeMillis();
		
		long time = end - start;
		System.out.println();
		System.out.println("It took " + time + " milliseconds to complete this program.");
	}
}
